/*
 * <h3>Title:wheel-utils系统</h3>
 * <p>Copyright (c) 2019, wnfbx@163.com. All rights reserved.</p>
 * @author wnfbx@163.com
 */
package wang.naifei.core.utils;

/**
 * <dt>Description:Assert</dt>
 * <dd>断言校验</dd>
 * <dd>author: wnfbx@163.com</dd>
 * <dd>version:1.0 <i>2022/1/14 23:48</i></dd>
 *
 * @since jdk1.7+
 */
public class Assert extends org.springframework.util.Assert {

    /**
     * <dt>Description:notNullAtSameTime</dt>
     * <dd>多个参数不同同时为空</dd>
     * <dd>author: wnfbx@163.com</dd>
     * <dd>version:1.0 <i>2022/1/14 23:45</i></dd>
     *
     * @param exceptionMessage
     * @param args
     * @since jdk1.7+
     */
    public static void notNullAtSameTime(String exceptionMessage, Object... args) {
        for (Object arg : args) {
            if (arg != null) {
                return;
            }
        }
        throw new IllegalArgumentException(exceptionMessage);
    }

}
